package top.toptimus.dto.result;

import lombok.Data;
import top.toptimus.constValue.MessageConsts;

@Data
public class SfExpressMessageResult {
    private String errorCode;
    private String errorMessage;
    private String sfExpressNo;
    private String orderReqContactInfo;

    public SfExpressMessageResult(
            String sfExpressNo,
            String orderReqContactInfo
    ) {
        this.errorCode = MessageConsts.OK;
        this.sfExpressNo = sfExpressNo;
        this.orderReqContactInfo = orderReqContactInfo;
    }

    public SfExpressMessageResult(String errorMessage) {
        this.errorCode = MessageConsts.INTENAL_SERVER_ERROR;
        this.errorMessage = errorMessage;
    }

}
